<?php

/**
 * Generated Model class.
 */
class Base_News2tagRow extends Db_Row
{

    /**
     * Set new value for news2tag.id column in current Row.
     * 
     * @param int $IdFromNews2tagRow
     * @return void
     */
    public function setId($Id)
    {
        $this->__set("id", $Id);
    }

    /**
     * Return news2tag.id column value in current Row.
     * 
     * @return int
     */
    public function getId()
    {
        return $this->__get("id");
    }

    /**
     * Set new value for news2tag.news_id column in current Row.
     * 
     * @param int $NewsIdFromNews2tagRow
     * @return void
     */
    public function setNewsId($NewsId)
    {
        $this->__set("news_id", $NewsId);
    }

    /**
     * Return news2tag.news_id column value in current Row.
     * 
     * @return int
     */
    public function getNewsId()
    {
        return $this->__get("news_id");
    }

    /**
     * Return parent row from table news where news2tag.news_id = news.id
     * 
     * @param Db_Select $selectFromNews
     * @return NewsRow
     */
    public function getNewsRowByNewsId($select = null)
    {
        return $this->findParentRow('NewsPeer', null, $select);
    }

    /**
     * Set new value for news2tag.tag_id column in current Row.
     * 
     * @param int $TagIdFromNews2tagRow
     * @return void
     */
    public function setTagId($TagId)
    {
        $this->__set("tag_id", $TagId);
    }

    /**
     * Return news2tag.tag_id column value in current Row.
     * 
     * @return int
     */
    public function getTagId()
    {
        return $this->__get("tag_id");
    }

    /**
     * Return parent row from table tag where news2tag.tag_id = tag.id
     * 
     * @param Db_Select $selectFromTag
     * @return TagRow
     */
    public function getTagRowByTagId($select = null)
    {
        return $this->findParentRow('TagPeer', null, $select);
    }


}

